package org.testile.dataset.scriptable.handlers;

import javax.script.ScriptEngine;

import org.testile.dataset.scriptable.handlers.ScriptInvocationHandler;

public class JRubyImportAddingInvocationHandler implements ScriptInvocationHandler {

	public String getLanguageName() {
		return "jruby";
	}
	
	public String preInvoke(String script) {

		return "require 'bigdecimal'; require 'bigdecimal/math'; include BigMath; " + script;
	}

	public Object postInvoke(Object object) {

		return object;
	}

	public void setScriptEngine(ScriptEngine engine) {

	}

}